package com.film.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.film.domain.Hobby;

public class HobbyRowMapper implements RowMapper<Hobby>{

	@Override
	public Hobby mapRow(ResultSet res, int arg1) throws SQLException {
		Hobby hobby=new Hobby();
		hobby.setH_id(res.getInt("h_id"));
		hobby.setH_name(res.getString("h_name"));
		return hobby;
	}

}
